/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package be.ugent.medirem.persistence.facade;

import be.ugent.medirem.persistence.entity.details.UnitDetails;
import be.ugent.medirem.persistence.exception.UnitNotFoundException;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Thomas Roelens <thomas.roelens@ugent.be>
 */
@Local
public interface UnitDaoLocal {

    Long create(String name) throws IllegalArgumentException;

    void remove(Long id) throws IllegalArgumentException, UnitNotFoundException;

    UnitDetails getUnit(Long id) throws IllegalArgumentException;

    Long getUnitId(String name) throws IllegalArgumentException, UnitNotFoundException;

    List<UnitDetails> getAll();
    
}
